const http = uni.$u.http

//确认订单
export const getCheckOrder = (params, config = {}) => http.post('/order/checkOrder', params, config)
//获取收货地址列表
export const getAddrList = (params, config = {}) => http.post('/order/getAddrList', params, config)
//获取收货地址详情
export const getAddrDetail = (params, config = {}) => http.post('/order/get_addr_detail', params, config)
//保存收获地址信息
export const getsaveAddress = (params, config = {}) => http.post('/order/saveAddress', params, config)
//设置默认收货地址
export const setDefaultAddr = (params, config = {}) => http.post('/order/set_default_addr', params, config)
//获取默认收货地址
export const getDefaultAddr = (params, config = {}) => http.post('/order/get_default_addr', params, config)
// 删除地址
export const delAddr = (params, config = {}) => http.post('/order/del_addr', params, config)
// 提交订单
export const getSubmitOrder = (params, config = {}) => http.post('/order/submitOrder', params, config)
// 支付订单
export const payOrder = (params, config = {}) => http.post('/order/payOrder', params, config)
// 查询订单
export const getqueryOrder = (params, config = {}) => http.post('/order/query_order', params, config)
// 订单列表
export const getOrderList = (params, config = {}) => http.post('/order/getOrderList', params, config)
// 订单详情
export const getOrderDetail = (params, config = {}) => http.post('/order/getOrderDetail', params, config)
// 取消订单
export const getCancelOrder = (params, config = {}) => http.post('/order/cancel_order', params, config)
// 确认收货
export const getShouhuo = (params, config = {}) => http.post('/order/shouhuo', params, config)
// 提交评价
export const getSaveOrderEvaluateAdd = (params, config = {}) => http.post('/order/saveOrderEvaluateAdd', params, config)
// 删除订单
export const getDelOrder = (params, config = {}) => http.post('/order/del_order', params, config)
// 查看物流
export const getWuliu = (params, config = {}) => http.post('/order/wuliu', params, config)